package com.tl.boot.entity.menu.domain;

import com.tl.boot.entity.permission.domain.ResAfterLoginInfo;

import java.util.List;
import java.util.Objects;

/**
 * com.tl.boot.entity.menu.vo -- MenuAfterLoginVO
 * Description:
 * Created by joshua_liu <a href="mailto:joshualwork@163.com"></a>
 * On 2019/9/18 11:01
 */
public class MenuAfterLoginInfo {
    private Long menuId;
    private String menuName;
    private String menuImg;
    private Short isLeaf;
    private Long parentMenuId;
    //一个菜单下对应有多个资源
    private List<ResAfterLoginInfo> list;

    public List<ResAfterLoginInfo> getList() {
        return list;
    }

    public String getMenuImg() {
        return menuImg;
    }

    public void setMenuImg(String menuImg) {
        this.menuImg = menuImg;
    }

    public void setList(List<ResAfterLoginInfo> list) {
        this.list = list;
    }

    public Long getMenuId() {
        return menuId;
    }

    public void setMenuId(Long menuId) {
        this.menuId = menuId;
    }

    public String getMenuName() {
        return menuName;
    }

    public void setMenuName(String menuName) {
        this.menuName = menuName;
    }

    public Short getIsLeaf() {
        return isLeaf;
    }

    public void setIsLeaf(Short isLeaf) {
        this.isLeaf = isLeaf;
    }

    public Long getParentMenuId() {
        return parentMenuId;
    }

    public void setParentMenuId(Long parentMenuId) {
        this.parentMenuId = parentMenuId;
    }

    public MenuAfterLoginInfo() {
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        MenuAfterLoginInfo that = (MenuAfterLoginInfo) o;
        return Objects.equals(menuId, that.menuId);
    }

    @Override
    public int hashCode() {
        return Objects.hash(menuId);
    }
}
